package com.macro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.macro.pojos.pojo.UiPrefrence;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UiPrefrenceMapper extends BaseMapper<UiPrefrence> {

    @Insert("INSERT INTO  tb_prefrence_goods_relation VALUES (NULL,#{prefrence_id},#{goods_id},NOW(),NULL,0)")
    int addPrefrence(@Param("prefrence_id") int preId, @Param("goods_id") Integer goodsId);
}
